#include <stdio.h>
#include <stdlib.h>

int main (int argc, char const* argv[])
{
    int a, b, ans, t;

    while (scanf("%d %d", &a, &b) != EOF) {
        ans = a * b;

        while (b != 0) {
            t = a % b;
            a = b;
            b = t;
        }

        ans = ans / a;
        printf("%d\n", ans);
    }

    return 0;
}
